package domian;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Integral {
    private Integer id;//主键
    private Integer uid;//用户id
    private Integer fid;//文件id
    private String file_title;//资源的名称标题
    private Integer integral;//积分变动，正值为加，负值为减
    private String cause;//积分变动的原因，如下载资源的扣分
    private String causeTime;//积分变动时间

    public Integral(Integer uid, Integer fid, String file_title, Integer integral, String cause, String causeTime) {
        this.uid = uid;
        this.fid = fid;
        this.file_title = file_title;
        this.integral = integral;
        this.cause = cause;
        this.causeTime = causeTime;
    }
}
